const Tree = require('multiple-tree');

let tree = new Tree();

let a = {
    a:1,
    b:2,
    c:3
}

tree.insert(a);
console.log("tree select ",tree.select(a));

console.log(tree.insert({
    a:1,b:2,c:3,d:4
}));

tree.insert({
    a:1,b:2,c:3,d:5
});
tree.insert({
    a:1,b:2,c:3,d:7
});
tree.grow({
    a:1,b:2,c:3,d:6
});
tree.grow({
    a:1,b:2,c:3,d:8
});
tree.grow({
    a:1,b:2,c:3,d:9
});
tree.grow({
    a:1,b:2,c:3,d:9,e:10
});
console.log(tree.grow({
    a:1,b:2,c:3,d:9,e:10
}));
console.log("tree walk ",JSON.stringify(tree.walk()));
tree.delete({
    a:1,b:2,c:3,d:9,e:10
})
console.log("tree walk ",JSON.stringify(tree.walk()));
